<view>
    <swiper class="banner" style="height:{{bnrHeight}}rpx" indicator-dots='true'
            autoplay='true' interval='5000'
            duration='300' circular='true'>
        <block wx:for="{{bnrUrl}}" wx:for-index="index">
            <swiper-item >
                <image data-link="{{item.link}}" bindtap="gotoUrl" src='{{item.image}}'  mode='widthFix'></image>
            </swiper-item>
        </block>
    </swiper>

    <view class="category" hidden="{{!category_show}}">
        <view class="list">
            <navigator url="/sm_shop/pages/category/category?category_id={{item.id}}" class="item" wx:for="{{category_list}}">
                <image src="{{item.image}}"></image>
                <view>{{item.name}}</view>
            </navigator>
        </view>
    </view>
    <view class="tuijian" >
        <view class="title">
            <image mode="widthFix" src="/sm_shop/resource/image/skin/tuijian-title.jpg"></image>
        </view>

        <view class="product-list" >

            <block wx:for="{{recommend.goods_list}}"  wx:for-index="index">
                <view id="goods-{{item.id}}" class="item">

                    <navigator url="/sm_shop/pages/product/product?product_id={{item.id}}">
                        <image src="{{item.image}}" alt=""/>
                    </navigator>
                    <navigator >
                        <text class="name">{{item.name}}</text>
                    </navigator>

                    <view class="sale-number">
                        <text wx:if="{{item.special>0}}" class="old-price text-line-through">¥{{item.price}}</text>
                        销量:{{item.sale}}
                    </view>
                    <view class="price-buy">
                        <view class="price">
                            <text hidden="{{item.special>0}}" class="text">¥{{item.price}}</text>
                            <text wx:if="{{item.special>0}}" class="text">¥{{item.special}}</text>
                        </view>
                        <view class="buy" data-product="{{item}}" bindtap="gotoBuy">
                            <text class="text">马上抢</text>
                        </view>

                    </view>
                </view>
            </block>

        </view>

    </view>
    <float-nav
            float_nav_show="{{float_nav_show}}"
    ></float-nav>
</view>
<import src="/we7/pages/templates/footer.wxml"/>
<template is="footerWx" data="{{...tabBar}}"/>
